<?php
include_once __DIR__ . '/../../Shell/BaseShell.php';
$res = Func_Calculation_Calculation::buildData('5,100.00');
var_dump($res);die;

$formulaArr = array(
    'a' => "<d>+1",
    'c' => "<b>+1",
    'b' => "<a>+1",

);

var_dump($formulaArr);
die;

$formula = "((<loan_date> - <overdue_day>)/86400 +<target_amount>+ Fhelp((<loan_term> + <loan_term>)))*<contract_rate> | 阿萨德卡卷返利快结束了";
$data = array(
    'loan_date' => '2019年1月2日' ,
    'overdue_day'=> '2019/1/1' ,
    'target_amount'=>"1,203.2",
    'loan_term'=>2,
    'contract_rate'=>'1%'
);
//多个公式
var_dump(Func_Calculation_Calculation::buildMoney(array('a'=>$formula,'b'=>$formula),$data));
//单个公式
var_dump(Func_Calculation_Calculation::calculationFormula($formula,$data,2));